﻿using Pattern22命令模式.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pattern22命令模式.Models
{
    /// <summary>
    /// 第二道诏书，回城
    /// </summary>
    public class ReturnCommand : CommandBase
    {
        public ReturnCommand(IReceiver receiver) : base(receiver)
        {
        }

        public override void Execute()
        {
            receiver.Return();
        }
    }
}
